const app = getApp();

Component({
    properties: {
        groupList: {
            type: Array,
            value: []
        }
    },
    
    observers: {},
    data: {},
    created() {
        console.log('拼团列表', this.data.groupList)
    },
    /**
     * 组件的方法列表
     */
    methods: {
        toGroupDetail(e) {
            console.log(e)
            let data = this.data.groupList[e.currentTarget.dataset.index];
            console.log(data)
            this.triggerEvent('toGroupDetail', data)
            clearInterval(this.data.interval)
        },
        // 我要开团
        openParty(){
            this.triggerEvent('openParty')
        }
    }
})